Database={};
Database.initTypes = function(subjects,contentTypes,collectionTypes){
	if(subjects!==''){
		var elements = subjects.split(",");
		$.each(elements,function(index,element){
			$(":input[type='checkbox'][name='subjects'][value='"+element+"']").attr("checked",true);
		});
	}
	
	if(contentTypes!==''){
		var elements = contentTypes.split(",");
		$.each(elements,function(index,element){
			$(":input[type='checkbox'][name='contentTypes'][value='"+element+"']").attr("checked",true);
		});
	}
	
	if(collectionTypes!==''){
		var elements = collectionTypes.split(",");
		$.each(elements,function(index,element){
			$(":input[type='checkbox'][name='collectionTypes'][value='"+element+"']").attr("checked",true);
		});
	}
};